sendFelicaCommand

open fun sendFelicaCommand(command: Array<Byte>, bufferSize: Int, closeAfterResponse: Boolean, timeout: Long): NfcCommandResponse

Sends a FeliCa command to the card. Note that the reader must be opened before using this command and should be closed after.

Return

The response of the FeliCa command.

Parameters

command

The FeliCa command to be sent to the card.

bufferSize

Expected bufferSize of the response, use 255 per default

closeAfterResponse

A flag indicating whether to close the card reader after receiving the response.

timeout

The maximum time to wait for a response, in milliseconds.